package com.chixing.day18_thread;

public class Test {
    public static void main(String[] args) {
        PubliicResourse publiicResourse = new PubliicResourse();
        Thread producer = new Thread(new Producer(publiicResourse));
        Thread consumer = new Thread(new Consumer(publiicResourse));
        producer.start();
        consumer.start();
    }
}
